
// 通用显示
function layer_show(title, url, id, w, h) {
  if(title === null || title === '') {
    title = false;
  }
  if(w === null || w === '') {
    w = 800;
  }
  if(h === null || h === '') {
    h = ($(window).height() - 300);
  }
  layer.open({
    type: 2,
    area: [w + 'px', h + 'px'],
    fixed: false,
    maxmin: true,
    shade: false,
    title: title,
    content: url
  });
}

//关闭弹出框口
function layer_close() {
  var index = parent.layer.getFrameIndex(window.name);
  parent.layer.close(index);
}